<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="NewCarrier.aspx.vb" Inherits="GTSWeb_Carrier_Manage" title="GTS Frieght Management System" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
<script language="VB" runat="server">

    Sub ImageButton_Click1(ByVal sender As Object, ByVal e As ImageClickEventArgs)
        Calendar1.Visible = True
    End Sub
    Sub ImageButton_Click2(ByVal sender As Object, ByVal e As ImageClickEventArgs)
        Calendar2.Visible = True
    End Sub
   </script>
    <div>
    <h3>Add New Carrier</h3>
        <table>
            <tr>
                <td colspan = "2" style="width: 331px">
                    <asp:Literal ID="ErrMsg" runat="server"></asp:Literal>&nbsp;</td>
                
            </tr>
            <tr>
                <td style="width: 331px; text-align: right;">
                    <strong>Carrier Name</strong></td>
                <td style="width: 15090px">
                    <asp:TextBox ID="txtCarrierName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCarrierName"
                        ErrorMessage="Required Carrier Name">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 331px">
                    Contract Start Date<asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#3366CC"
                        BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana"
                        Font-Size="8pt" ForeColor="#003399" Height="148px" Width="174px">
                        <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                        <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                        <WeekendDayStyle BackColor="#CCCCFF" />
                        <OtherMonthDayStyle ForeColor="#999999" />
                        <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
                        <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
                        <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True"
                            Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
                    </asp:Calendar>
                </td>
                <td style="width: 15090px">
                    Contract End Date<asp:Calendar ID="Calendar2" runat="server" BackColor="White" BorderColor="#3366CC"
                        BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana"
                        Font-Size="8pt" ForeColor="#003399" Height="148px" Width="176px">
                        <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                        <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                        <WeekendDayStyle BackColor="#CCCCFF" />
                        <OtherMonthDayStyle ForeColor="#999999" />
                        <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
                        <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
                        <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True"
                            Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
                    </asp:Calendar>
                </td>
            </tr>
            <tr>
                <td style="width: 331px; height: 11px; text-align: right;">
                    <strong>Contact Name</strong></td>
                <td style="width: 15090px; height: 11px;">
                    <asp:TextBox ID="txtContactName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtContactName"
                        ErrorMessage="Required Contact Name">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 331px; height: 28px; text-align: right;">
                    <strong>
                    Phone</strong></td>
                <td style="width: 15090px; height: 28px;">
                    <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPhone"
                        ErrorMessage="Required Phone Number">*</asp:RequiredFieldValidator>
                    </td>
            </tr>
            <tr>
                <td style="width: 331px; height: 1px; text-align: right;">
                    <strong>
                    Fax</strong></td>
                <td style="width: 331px; height: 1px">
                    <asp:TextBox ID="txtFax" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 331px; height: 5px; text-align: right;">
                    <strong>
                    Email</strong></td>
                <td style="width: 15090px; height: 5px;">
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="Required Email ">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="Invalid email address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td style="width: 331px; height: 24px; text-align: right;">
                    <strong>
                    Street Address</strong></td>
                <td style="width: 15090px; height: 24px;">
                    <asp:TextBox ID="txtStreetAddress" runat="server" TextMode="MultiLine" Width="150px" Height="14px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtStreetAddress"
                        ErrorMessage="Required StreetAddress">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 331px; text-align: right;">
                    <strong>
                    City</strong></td>
                <td style="width: 15090px">
                    <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtCity"
                        ErrorMessage="Required City">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 331px; text-align: right;">
                    <strong>
                    Province</strong></td>
                <td style="width: 15090px">
                    <asp:TextBox ID="txtProvinceState" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtProvinceState"
                        ErrorMessage="Required Province State">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtProvinceState"
                        ErrorMessage="Example: AB" ValidationExpression="[a-z,A-Z][a-z,A-Z]"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td style="width: 331px; text-align: right;">
                    <strong>
                    Country</strong></td>
                <td style="width: 15090px">
                    <asp:TextBox ID="txtCountry" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtCountry"
                        ErrorMessage="Required Country">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 331px; text-align: right;">
                    <strong>Postal Code</strong></td>
                <td style="width: 15090px">
                    <asp:TextBox ID="txtPostalCode" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtPostalCode"
                        ErrorMessage="Required Postal Code">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 331px; height: 26px; text-align: right;">
                    <strong>
                    Carrier Account Number</strong></td>
                <td style="width: 15090px; height: 26px;">
                    <asp:TextBox ID="txtCarrierAccountNumber" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 331px;">
                    <asp:Button ID="btnAdd" runat="server" Text="Add" Width="184px" /></td>
                <td style="width: 15090px;">
                    <asp:Button ID="btnCancel" runat="server" Text="Clear" Width="216px" /></td>
            </tr>
        </table>
    </div>
</asp:Content>

